package cn.wolfcode.crm.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter@Getter
@AllArgsConstructor
@NoArgsConstructor
public class QueryObject {

    private int page = 1;
    private int rows = 10;

    public int getStartIndex(){

        return (page - 1) * rows;
    }
}
